package src.cs2340.todoApp;

import android.content.Context;
import android.widget.CheckBox;

/**
 * A wrapper class around the CheckBox which stores the TaskItem encapsulated in the object
 * @author Rochelle
 *
 */
public class TaskItemCheckBox extends CheckBox {

	//encapsulated variables 
	private TaskItem item;
	
	// Super class constructor 
	public TaskItemCheckBox(Context context) {
		super(context);
	}
	
	/**
	 * Constructor that allows 
	 * @param context
	 * @param item
	 */
	public TaskItemCheckBox(Context context, TaskItem item) {
		super(context);
		this.item = item;
	}
	
	/**
	 * Getter for TaskItem
	 * @return
	 */
	public TaskItem getTaskItem() {
		return item;
	}

}
